package com.ieheima.ai.Entry;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.ai.chat.messages.Message;

@NoArgsConstructor
@Data
public class MessageVo {

    String role;
    String cotent;

    public MessageVo(Message message)
    {
        this.cotent=message.getText();
        this.role=message.getMessageType().getValue();

    }



}
